﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DAO;
using DTO;

namespace BUS
{
    public class PhieuTraHangBUS
    {
        
        public List<PhieuTraHangDTO> LayDanhSachPTH()
        {
            PhieuTraHangDAO pthDAO = new PhieuTraHangDAO();
            return pthDAO.LayDanhSachPTH();
        }
        public string ThemPhieuTraHang(PhieuTraHangDTO pthDTO)
        {
            PhieuTraHangDAO pthDAO = new PhieuTraHangDAO();
            return pthDAO.ThemPhieuTraHang(pthDTO);
        }
        public int LayMaPhieuTraHang()
        {
            PhieuTraHangDAO pthDAO = new PhieuTraHangDAO();
            return pthDAO.LayMaPhieuTraHang();
        }
    }
}

